﻿using Core.Domain.Events;
using MediatR;
using Microsoft.Extensions.Logging;

namespace Core.Identity.Menus.Features.Events;

public class PermissionCreateEventHandler(ILogger<PermissionCreateEventHandler> logger) : INotificationHandler<PermissionCreate>
{
    public async Task Handle(PermissionCreate notification,
        CancellationToken cancellationToken)
    {
        logger.LogInformation("handling product created domain event..");
        await Task.FromResult(notification);
        logger.LogInformation("finished handling product created domain event..");
    }
}
